package com.songlanyun.modules.sharerecord.controller.admin;

import com.songlanyun.common.utils.PageUtils;
import com.songlanyun.common.utils.R;
import com.songlanyun.modules.sharerecord.service.SystemShareOpenRecordService;
import com.songlanyun.modules.user.controller.AbstractController;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;



/**
 * 记录会员打开分享连接记录
 *
 * @author zx
 * @date 2021年3月4日 14:52:06
 */
@RestController
@RequestMapping("admin/share/record")
public class SystemShareOpenRecordAdminController extends AbstractController {
    @Autowired
    private SystemShareOpenRecordService systemShareOpenRecordService;

    /**
     * 列表
     */
    @RequestMapping("/list")
    public R list(@RequestParam Map<String, Object> params){
        verifyAdmin();//校验用户
        PageUtils page = systemShareOpenRecordService.queryPage(params);
        return R.ok().put("page", page);
    }
}
